# Maintainer: Pedro Filipe <xpecex@outlook.com>
pkgname=gobuster
pkgver=3.6.0
pkgrel=2
pkgdesc="Directory/File, DNS and VHost busting tool written in Go"
url="https://github.com/OJ/gobuster"
arch="all !s390x"
license="Apache-2.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/OJ/gobuster/archive/v$pkgver.tar.gz"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build -o build/gobuster
}

check() {
	go test -v ./...
}

package() {
	install -Dm755 "./build/gobuster" "$pkgdir/usr/bin/gobuster"
}

sha512sums="
838a90dfa439e7955ac190beee3871b8b3fb7bfa66ba0b42be9433cfa8b4ee695be0688a5726e7f7eea86f6cd517591b3fe4fbd10a8110874afa8c8199ce2108  gobuster-3.6.0.tar.gz
"
